﻿using System;


namespace TopBuilds.Restaurant.Data
{
    public class DiscountOption
    {
        #region 属性
        private int _id;
        private string _name;
        private int _discount;
        #endregion 

        #region 构造
        public DiscountOption()
        {
            _name           = null;
            _discount       = 0;
        }

        public DiscountOption(int id)
        {
            _id             = id;
            _name           = null;
            _discount       = 0;
        }

        public DiscountOption(int id, string name)
        {
            _id             = id;
            _name           = name;
            _discount       = 0;
         }
        public DiscountOption(int id, string name, int discount)
        {
            _id             = id;
            _name           = name;
            _discount       = discount;
        }
        #endregion

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public int Discount
        {
            get { return _discount; }
            set { _discount = value; }
        }
        public override string ToString()
        {
            return Name;
        }
    }
}
